<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title><? echo $orgName; ?> - Emergency Relief System</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!--<script language="JavaScript" src="./calendar/validate5.js"></script>-->
	<script src="inc/js/calendar/js_test/prototype.js" type="text/javascript"></script>
	<link href="inc/js/calendar/css/basic.css" media="screen" rel="Stylesheet" type="text/css" />
	<script src="inc/js/calendar/public/javascripts/calendar_date_select/calendar_date_select.js" type="text/javascript"></script>
	<script src="inc/js/calendar/public/javascripts/calendar_date_select/format_finnish.js" type="text/javascript"></script>
	<link href="inc/js/calendar/css/default.css" media="screen" rel="Stylesheet" type="text/css" />
	
	<link rel="stylesheet" type="text/css" href="layout.css" />
	<link rel="stylesheet" type="text/css" href="format.css" />
	<!-- <script type="text/javascript" language="javascript" src="inc/js/stylechanger.js"></script> -->
	<script type="text/javascript">
	// Copyright 2003 Eddie Traversa
	// http://www.dhtmlnirvana.com/
	// free to use as long as this copyright notice stays intact
	var tags = new Array( 'div','td','tr','p','b','table','strong','emphasis','a','h1','h2','h3','h4','h5','h6','h7','pre','sub','sup','i','th','cp','ul','ol','li','dt','dd');
	var pixelArray =  new Array('10','11','12','13','14','15','16');
	var emArray =  new Array('0.7','0.9','1.0','1.5','2.0','2.5','3');
	var initSize = 0;
	
function fontSizer(inc,unit) {
	if (!document.getElementById) 
		return;
	var size = initSize;
	size += inc;
	if (size < 0 ) {
		size = 0;
	}
	if (size > 6 ) {
		size = 6;
	}
	initSize = size;
	getBody = document.getElementsByTagName('body')[0];
	for (i = 0 ; i < tags.length ; i++ ) {
		getallTags = getBody.getElementsByTagName(tags[i]);
		for (k = 0 ; k < getallTags.length ; k++) 
			getallTags[k].style.fontSize = (unit=='pt') ? pixelArray[size]+unit: emArray[size]+unit;
	}
}
	</script>
</head>
<body <? if (!$a->getAuth() && empty($_GET['page'])) echo "onload=\"this.document.forms['loginform'].elements['username'].focus();\""; ?>>
<div id="header">
		<div class="logo"><img src="images/cobaw_logo_ers.jpg" alt="" border="0"/></div>
		<div id="datebar" align="right">
			<span class="bar"><? date_default_timezone_set("Australia/ACT"); echo date("l, jS F Y"); ?></span>
		</div>
		<!-- <a title="Increase size" onclick="changeFontSize(1);return false;"><img src="templates/jw_joomla/images/jos_css_larger.png" border="0" alt="larger" /></a><a title="Decrease size" onclick="changeFontSize(-1);return false;"><img src="templates/jw_joomla/images/jos_css_smaller.png" border="0" alt="smaller" /></a><a title="Revert styles to default" onclick="revertStyles(); return false;"><img src="templates/jw_joomla/images/jos_css_reset.png" border="0" alt="reset" /></a> -->
</div>
<div id="bottomright">
<div id="left">
	<h4>Navigation</h4><br />
<?
	if ($a->getAuth()) {
		$usertype = getUserType(false);
		echo "<a href=\"?page=search_basic\">Search</a><br />";
		echo "<a href=\"?page=submit_search\">Search Results</a><br />";
		echo "<a href=\"?page=client_view\">View Current Client</a><br />";
		if ($usertype == 2) {
			//echo "IT admin";
		}
		elseif ($usertype == 3) {
			//echo "er admin";
			echo "<br /><a href=\"?page=reports\">Reports</a><br />";
		}
		elseif ($usertype == 4) {
			//echo "CEO";
		}
		elseif ($usertype == 5) {
			//echo "Staff";
		}
		echo "<br /><a href=\"?page=problem_add\">Contact Administrators</a><br />";
		echo "<br /><a href=\"index.php?action=logout\">Logout</a><br />";
	}
	else {
		echo "<a href=\"./index.php\">Login</a><br />";
		echo "<br /><a href=\"?page=problem_add\">Contact Administrators</a><br />";
	}
?>
<hr style="color: grey; height: 1px; width:80%;" />
<a href="#" onmousedown="fontSizer(2,'pt')">+ Increase Text Size</a><br />
<a href="#" onmousedown="fontSizer(-2,'pt')">- Decrease Text Size</a>
<div class="roundbottom"></div>
</div>
<div id="content">